package com.my.chapter4;

public class practice6 {
    public static void main(String[] args) {
        System.out.println(test(5,3,6));
        System.out.println(test(2,3,6));
    }
    static int test(int testval,int begin,int end){
        if(testval>=begin && testval<=end){
            return 1;
        }else{
            return 0;
        }
    }
}
